package com.a214.yxz.yuejian013.Service;

import com.a214.yxz.yuejian013.JavaBean.PeiXunDetail;
import com.a214.yxz.yuejian013.JavaBean.PeiXunJiBie;
import com.a214.yxz.yuejian013.JavaBean.PeiXunListBean;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;
/**
 * Created by hp-pc on 2017/9/28.
 */

public interface PxService {

    /**
     * 培训列表
     * @param sessionId
     * @param page
     * @return
     */
    @GET("lists/mod/train")
    Call<List<PeiXunListBean>> getPeiXunList(
             @Query("SessionID") String sessionId,
             @Query("page") int page
    );


    /**
     * 培训详情
     * @param sessionId
     * @param id
     * @return
     */
    @GET("get/mod/train")
Call<PeiXunDetail> getPeiXunDetail(
  @Query("SessionID")   String sessionId,
  @Query("id") String id
);
    /**
     * 订单
     * @param sessionId
     * @param id
     * @return
     */


    /**
     * 培训入门
     * @param sessionId
     * @param page
     * @param degree
     * @return
     */
    @GET("lists/mod/train")
    Call<List<PeiXunJiBie>> getJieBie1(
            @Query("SessionID") String sessionId,
            @Query("page") int page,
            @Query("Degree")  String degree
    );

    /**
     * 培训初级
     * @param sessionId
     * @param page
     * @param degree
     * @return
     */
    @GET("lists/mod/train")
    Call<List<PeiXunJiBie>> getJieBie2(
            @Query("SessionID") String sessionId,
            @Query("page") int page,
            @Query("Degree") String degree
    );


    @GET("lists/mod/train")
    Call<List<PeiXunJiBie>> peixunList(@Query("SessionID") String SessionID,
                                       @Query("page") int page,
                                       @Query("mod") String mod,
                                       @Query("degree") int Degree
    );
    /**
     * 培训进阶
     * @param sessionId
     * @param page
     * @param degree
     * @return
     */
    @GET("lists/mod/train")
    Call<List<PeiXunJiBie>> getJieBie3(
            @Query("SessionID") String sessionId,
            @Query("page") int page,
            @Query("Degree")  String degree
    );


    @GET("create/mod/signtrain")
    Call<String> pay(@Query("participantname") String participantname,
                     @Query("train_id") String train_id,
                     @Query("participanttel") String participanttel,
                     @Query("adultnum") int adultnum,
                     @Query("paytype") int paytype,
                     @Query("pay") double pay,
                     @Query("paynotice") String paynotice,
                     @Query("userid") String userid,
                     @Query("SessionID") String SessionID
    );
}
